<form id="add-form" class="form-horizontal form-ajax" role="form" data-toggle="validator" method="POST" action="">
    {:token()}
    <input type="hidden" name="row[type]" value="20">
    <div class="form-group">
        <label for="c-username" class="control-label col-xs-12 col-sm-2">{:__('Username')}:</label>
        <div class="col-xs-12 col-sm-4">
            <input id="c-username" data-rule="required" class="form-control" name="row[username]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label for="c-nickname" class="control-label col-xs-12 col-sm-2">{:__('Nickname')}:</label>
        <div class="col-xs-12 col-sm-4">
            <input id="c-nickname" data-rule="required" class="form-control" name="row[nickname]" type="text" value="">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Gender')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_radios('gender]', ['0' => __('未知'),'1'=>__('Male'), '2'=>__('Female')])}
        </div>
    </div>

    <div class="form-group">
        <label for="c-address" class="control-label col-xs-12 col-sm-2">{:__('所在城市')}:</label>
        <div class="col-xs-12 col-sm-4">
            <input id="c-address" data-rule="" class="form-control" name="row[address]" type="text" value="">
        </div>
    </div>

    <div class="form-group">
        <label for="c-age" class="control-label col-xs-12 col-sm-2">{:__('年龄')}:</label>
        <div class="col-xs-12 col-sm-4">
            <input id="c-age" data-rule="" class="form-control" data-use-current="true" name="age" type="text" value="">
<!--            <input id="c-birthday" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[birthday]" type="text" value="{$row.birthday|datetime}">-->
        </div>
    </div>

    <!--    <div class="form-group">-->
    <!--        <label for="c-birthday" class="control-label col-xs-12 col-sm-2">{:__('Birthday')}:</label>-->
    <!--        <div class="col-xs-12 col-sm-4">-->
    <!--            <input id="c-birthday" data-rule="" class="form-control datetimepicker" data-date-format="YYYY-MM-DD" data-use-current="true" name="birthday" type="text" value="{$row.birthday|htmlentities}">-->
    <!--        </div>-->
    <!--    </div>-->
    <div class="form-group">
        <label for="c-mobile" class="control-label col-xs-12 col-sm-2">{:__('Mobile')}:</label>
        <div class="col-xs-12 col-sm-4">
            <input id="c-mobile" data-rule="mobile" class="form-control" name="row[mobile]" type="text" value="">
        </div>
    </div>

    <div class="form-group">
        <label for="c-constellation" class="control-label col-xs-12 col-sm-2">{:__('星座')}:</label>
        <div class="col-xs-12 col-sm-4">
<!--            <input id="c-constellation" data-rule="constellation" class="form-control" name="row[constellation]" type="text" value="">-->
            <select id="c-constellation" class="form-control selectpicker" name="row[constellation]">
                <option value="">{:__('请选择星座')}</option>
                {foreach name="constellationList" item="item"}
                <option value="{$key}">{$item}</option>
                {/foreach}
            </select>
        </div>
    </div>

    <div class="form-group">
        <label for="c-height" class="control-label col-xs-12 col-sm-2">{:__('身高')}:</label>
        <div class="col-xs-12 col-sm-4">
            <div class="input-group">
                <input id="c-height" data-rule="height" class="form-control" name="row[height]" type="number" value="">
                <span class="input-group-addon">cm</span>
            </div>
        </div>
    </div>

    <div class="form-group">
        <label for="c-weight" class="control-label col-xs-12 col-sm-2">{:__('体重')}:</label>
        <div class="col-xs-12 col-sm-4">
            <div class="input-group">
                <input id="c-weight" data-rule="weight" class="form-control" name="row[weight]" type="number" value="">
                <span class="input-group-addon">kg</span>
            </div>
        </div>
    </div>

    <div class="form-group">
        <label for="c-hobby" class="control-label col-xs-12 col-sm-2">{:__('爱好')}:</label>
        <div class="col-xs-12 col-sm-4">
            <input id="c-hobby" data-rule="hobby" class="form-control" name="row[hobby]" type="text" value="">
        </div>
    </div>

    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
